package com.iweb.work;

public class Tank {
    private int x;
    private int y;
    private String dir;
    private String type;

    public Tank(){

    }
    public Tank(int x,int y,String dir,String type){
        this.x=x;
        this.y=y;
        this.dir=dir;
        this.type=type;
    }
    public void show(){
        System.out.println("横坐标为"+this.x+"纵坐标为"+this.y+"方向为"+this.dir+"类型为"+this.type);
    }
}
